package com.zls.controller;

import com.zls.pojo.User;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(value = "用户模块接口",tags = "user用户模块")
@RestController
@RequestMapping("user")
public class UserController {
    @ApiOperation(value = "查询用户",notes = "根据ID查询用户信息",response = User.class)
    @GetMapping("/{id}")
    @ApiImplicitParam(name = "id", value="员工ID", required=true, dataType = "int", example="10")
    public User getUser(@PathVariable int id){
        System.out.println("jinrule");
        return new User(id,"aaa","bbb","ccc",18,"aaa");
    }

}
